public class HardDisk {
    // 属性：容量大小
    int amount;

    // 将参数m的值赋给
    public void setAmount(int m){
        this.amount = m;
    }

    // 返回amount的值
    public int getAmount(){
        return amount;
    }
}
